<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .one-line-ellipsis {
      overflow: hidden;
      /* 处理文字溢出样式 */
      text-overflow: ellipsis;
      /* 处理页面留白 */
      white-space: nowrap;
      max-width: 375px;
      /* text-indent: 2rem; */
    }
  </style>
</head>

<body>
  <div class="box">
    <p class="one-line-ellipsis">Hello Fatfish, Hello Fatfish, Hello Fatfish, Hello Fatfish, Hello Fatfish, Hello Fatfish,Hello Fatfish, Hello
      Fatfish, Hello Fatfish, Hello Fatfish, Hello Fatfish, Hello Fatfish</p>
  </div>
</body>

</html>